<template>
  <div class="Carousel">
    <div class="Carousel1">
      <span class="Carousel1_title">店铺公告</span>
      <div class="Carousel1_txt">
        <span></span>
        <p>
          因部分地区仍受疫情影响，配送时效延迟公告
        </p>
      </div>
    </div>
    <div class="Carousel2">
      <el-carousel height="80vh" indicator-position="outside" :interval="3000" arrow="always">
        <el-carousel-item v-for="(item,index) in CarouselData" :key="index">
          <el-image
              style="width: 100%; height: 100%"
              :src="item.url"
              fit="cover"></el-image>
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="Carousel3">
      <div class="Carousel3_ico">
        <i class="el-icon-arrow-left"></i>
      </div>
      <div style="display: flex; width: 90%;">
        <div class="Carousel3_data" v-for="(i,index) in CarouselData1" :key="index">
          <div class="Carousel3_data_left">
            <p class="Carousel3_data_left_p1">¥{{ i.price1 }}</p>
            <p class="Carousel3_data_left_p2">满¥{{ i.price2 }}可用</p>
          </div>
          <div class="Carousel3_data_right">
            <p class="Carousel3_data_right_p">{{ i.name }}</p>
            <p class="Carousel3_data_right_bottom">立即领取</p>
          </div>
        </div>
      </div>
      <div class="Carousel3_ico">
        <i class="el-icon-arrow-right"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Carousel",
  data() {
    return {
      CarouselData: [
        {
          url: 'https://mujipywebblob.blob.core.chinacloudapi.cn/oms2829337/01721b9a-df0e-4312-86ba-b29d6132c59a.jpg'
        }, {
          url: 'https://mujipywebblob.blob.core.chinacloudapi.cn/oms2829348/516f3d47-e320-4f3a-9a4d-5c53fac4be41.jpg'
        }, {
          url: 'https://mujipywebblob.blob.core.chinacloudapi.cn/oms2829344/efadfca2-eb71-4e01-b38e-c621eb80115a.jpg'
        }, {
          url: 'https://mujipywebblob.blob.core.chinacloudapi.cn/oms2829349/8e8898d3-54df-4639-923a-e15edee10c60.jpg'
        }, {
          url: 'https://mujipywebblob.blob.core.chinacloudapi.cn/oms2829350/47dbaa44-b4b4-4dd6-8504-4d563eef439a.jpg'
        },
      ],
      CarouselData1: [
        {
          price1: '14',
          price2: '72',
          name: '山泉水专享山泉水专享山泉水专享'
        }, {
          price1: '28',
          price2: '144',
          name: '山泉水专享山泉水专享山泉水专享'
        }, {
          price1: '42',
          price2: '216',
          name: '山泉水专享山泉水专享山泉水专享'
        },
      ]
    }
  },
  mounted() {

  },
  methods: {}
}
</script>

<style lang="less" scoped>
.Carousel {
  width: 78%;
  margin: 0 auto;
  padding-top: 1.5%;

  .Carousel1 {
    padding: 1%;
    margin-bottom: 1.5%;
    width: 98%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;

    .Carousel1_title {
      font-size: 16px;
      font-weight: 600;
      color: black;
    }

    .Carousel1_txt {
      display: flex;
      align-items: center;
      margin-left: 2%;

      span {
        display: block;
        width: 6px;
        height: 6px;
        background-color: black;
        border-radius: 50%;
        margin-right: 1.5%;
      }

      p {
        width: 500px;
        display: inline-block;
        font-size: 14px;
        font-weight: 600;
        color: #60b3fa;
      }
    }
  }

  .Carousel2 {
    width: 100%;
    height: auto;
  }

  .Carousel3 {
    margin-top: 2%;
    margin-bottom: 2%;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .Carousel3_ico {
      width: 40px;
      height: 120px;
      background-color: #f2f2f2;
      line-height: 120px;
      text-align: center;

      i {
        color: white;
        font-size: 30px;
        font-weight: bold;
      }
    }

    .Carousel3_data {
      display: flex;
      width: 25%;
      height: 120px;
      border: 1px solid #e5e5e5;
      margin-right: 2%;

      .Carousel3_data_left {
        background-color: #f2f2f2;
        text-align: center;
        padding: 15% 0;
        width: 160px;

        .Carousel3_data_left_p1 {
          font-size: 21px;
          color: black;
          font-weight: bold;
          margin-bottom: 5%;
        }

        .Carousel3_data_left_p2 {
          font-size: 14px;
          color: black;
          font-weight: bold;
        }
      }

      .Carousel3_data_right {
        width: 38%;
        text-align: center;
        padding: 15% 4%;

        .Carousel3_data_right_p {
          font-size: 14px;
          color: black;
          font-weight: bold;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 100%;
          margin-bottom: 10%;
        }

        .Carousel3_data_right_bottom {
          display: block;
          width: 100px;
          height: 30px;
          background-color: black;
          margin: 0 auto;
          line-height: 30px;
          text-align: center;
          font-size: 13px;
          color: white;
          font-weight: bold;
        }
      }
    }
  }
}
</style>